package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.heima.article.entity.ApArticle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.article.dtos.ArticleDto;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * <p>
 * 文章信息表，存储已发布的文章 Mapper 接口
 * </p>
 *
 * @author HM
 * @since 2023-02-01
 */
@Mapper
public interface ApArticleMapper extends BaseMapper<ApArticle> {


    IPage<ArticleDto> findByPage(IPage iPage);

    ArticleDto findById(Long articleId);
}
